<html lang="en" xmlns:th="http://www.thymeleaf.org">   <!-- 引入thymeleaf的命名空间 -->
<head>
    <meta charset="UTF-8" http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>Getting Started: Serving Web Content</title>
    <link th:src="@{bootstrap/css/bootstrap.min.css}" rel="stylesheet"/>
    <link th:src="@{bootstrap/css/bootstrap-theme.min.css}" rel="stylesheet"/>
</head>
<body>
<script th:src="@{js/jquery-3.5.1.js}" type="text/javascript"></script>
<script th:src="@{bootstrap/js/bootstrap.min.js}" type="text/javascript"></script>

<div class="panel panel-primary" style="background-color: aqua;">
    <div class="panel-heading">
        <h3 class="panel-title">访问model</h3>
    </div>
</div>
<div class="panel-body" style="background-color:ghostwhite; margin: auto; width:100px">
    <span th:text="${user.userId}"></span>
    <br>
    <span th:text="${user.userName}"></span>
</div>
</body>
</html>